<?php 
$show_validator = true;
include TMPL_PATH.'public/header.phtml';
?>
<link rel="stylesheet" type="text/css" href="/statics/js/calendar/jscal2.css"/>
<link rel="stylesheet" type="text/css" href="/statics/js/calendar/border-radius.css"/>
<link rel="stylesheet" type="text/css" href="/statics/js/calendar/win2k.css"/>
<script type="text/javascript" src="/statics/js/calendar/calendar.js"></script>
<script type="text/javascript" src="/statics/js/calendar/lang/zh-cn.js"></script>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='javascript:;' class="on"><em>订单查询</em></a>
    </div>
</div>
<div class="pad_10">
<div class="common-form">
<form name="myform" action="<?php echo U('order/order_queryList');?>" method="post" id="myform"  enctype="multipart/form-data">
<table width="100%" class="table_form contentWrap">
<td width="80">订单号：</td> 
<td><input type="text" name="ordernumber"  class="input-text" id="ordernumber"/></td>
</tr>
<tr>
<td width="80">电子邮件：</td> 
<td><input type="text" name="email" class="input-text" id="email"/></td>
</tr>
<tr>
<td width="80">收货人：</td> 
<td><input type="text" name="consignee" class="input-text" id="consignee"/></td>
</tr>
<tr>
<td width="80">地址：</td> 
<td><input type="text" name="address" class="input-text" id="address"/></td>
</tr>
<tr>
<td width="80">邮编：</td> 
<td><input type="text" name="postcode" class="input-text" id="postcode"/></td>
</tr>
<tr >
<td width="80">电话：</td> 
<td><input type="text" name="phone" class="input-text" id="phone"/></td>
</tr>
<tr >
<td width="80">手机：</td> 
<td><input type="text" name="mobilephone" class="input-text" id="mobilephone"/></td>
</tr>
<tr>
<td>所在地区</td>
<td>国家：<select name="country">
<option value="0">请选择</option>
<?php 
if(isset($countryList) && $countryList){
	foreach($countryList as $country){
?>
<option value="<?php echo $country['id'] ?>" id="c<?php echo $country['id'] ?>" title="<?php echo $country['name'] ?>" <?php if($delivery_cid == $country['id'])echo 'selected';?>><?php echo $country['name'] ?></option>
<?php 
}	}
?>
</select>
省：<input type="text" name="province" class="input-text" id="province" value=""/>
市：<input type="text" name="city" class="input-text" id="city" value=""/>
</td>
</tr>
<tr>
<td>配送方式：</td>
<td><select name="shipping_method">
<option value="0">请选择</option>
<?php 
	if(isset($shippingList) && $shippingList):
		foreach ($shippingList as $shipping):
?>
<option <?php if($shipping['id'] == $order['shipping_method'])echo 'selected="selected"';?> value="<?php echo $shipping['name']?>"><?php echo $shipping['title'];?></option>
<?php 
	endforeach;
	 endif;
?>
</select></td>
</tr>
<tr>
<td>支付方式：</td>
 <td> <select name="payment_method">
 <option value="0">请选择</option>
		<?php 
			if(isset($paymentList) && $paymentList):
				foreach ($paymentList as $payment):
					if($payment['status'] == false) continue;
			?>
			<option <?php if($payment['name'] == $order['payment_method'])echo 'selected="selected"';?> value="<?php echo $payment['name']?>"><?php echo $payment['title'];?></option>
			<?php 
				endforeach;
			endif;
			?>
</select></td>
</tr>
	<tr class="xianshi02">
	    <th>下单时间</th>
	    <td><input class="input-text" name="start_time" type="text" id="start_time" size="22" "/>
	    <div class="infoShow"></div>
	    <script type="text/javascript">
			Calendar.setup({
			weekNumbers: false,
		    inputField : "start_time",
		    trigger    : "start_time",
		    dateFormat: "%Y-%m-%d",
		    showTime: false,
		    minuteStep: 1,
		    onSelect   : function() {this.hide();}
			});
        </script>
	    </td>
	  </tr>
	  <tr class="xianshi02">
	    <th>至</th>
	    <td><input class="input-text"  name="end_time" type="text" id="end_time" size="22"/>
	    <script type="text/javascript">
			Calendar.setup({
			weekNumbers: false,
		    inputField : "end_time",
		    trigger    : "end_time",
		    dateFormat: "%Y-%m-%d",
		    showTime: false,
		    minuteStep: 1,
		    onSelect   : function() {this.hide();}
			});
        </script>
	    </td>
		</tr>
<tr>
<td>订单状态：</td> 
<td> <select name="order_status">
<?php 
	foreach (OrderModel::$orderStatusCn as $os_key => $os_val):
?>

			<option <?php if($os_key == $order['order_status'])echo 'selected="selected"';?> value="<?php echo $os_key?>"><?php echo $os_val;?></option>
			<?php 
				endforeach;
			?>
		</select></td>
</tr>
<tr>
<td>付款状态：</td> 
<td> <select name="payment_status">
<?php 
	foreach (OrderModel::$paymentStatus as $ps_key => $ps_val):
?>
	<option <?php if($ps_key == $order['payment_status'])echo 'selected="selected"';?> value="<?php echo $ps_key?>"><?php echo $ps_val;?></option>
<?php 
	endforeach;
?>
</select></td>
</tr>
<tr>
<td>发货状态：</td>
		<td> <select name="shipping_status">
		<?php 
				foreach (OrderModel::$shippingStatus as $ss_key => $ss_val):
			?>

			<option <?php if($ss_key == $order['shipping_status'])echo 'selected="selected"';?> value="<?php echo $ss_key?>"><?php echo $ss_val;?></option>
			<?php 
				endforeach;
			?>
		</select></td>
</tr>
</table>
    <div class="bk15"></div>
    <input name="dosubmit" type="submit" value="提交" class="button" id="dosubmit" />
</form>
</div>
</div>
</body>
</html>
